package com.hy.erp.inventory.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQuery ;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/*import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
*/
import com.hy.erp.inventory.dao.interfaces.IHealthDao;
import com.hy.erp.inventory.pojo.interfaces.IHealth;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;

/**
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-10-6；时间：下午03:04:10</li>
 * <li>字段类型：long；字段名称：serialVersionUID</li>
 * <li>设计目的：健康状况</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */

/*@Entity
@Name("health")
@Scope(ScopeType.SESSION)
@Table(name="healths")
@ DaoA ( IHealthDao.class )
@ NamedQuery ( name = "findHealthByPersonId" , query = "select p.health from Person p where p.identifier=?")
*/
public class Health extends MyBaseModel //implements IPositonType
//public class Health extends AbstractPersistentEntity implements IHealth
{
	private static final long	serialVersionUID	=
														- 4861988031755384669L ;


	public Health(){}

	public Health (
					String healthId ,
					String health ,
					String etiology ,
					Date physicalExaminationDate ,
					String remark )
	{
		super ( ) ;
		
	}

	
	

	@Column(name="health",unique=false,nullable=false,insertable=true,updatable=true)
	public String getHealth ( )
	{

		return this.get(IHealth.HEALTH) ;
	}

	@Column(name="etiology",unique=false,nullable=false,insertable=true,updatable=true)
	public String getEtiology ( )
	{

		return this.get(IHealth.ETIOLOGY) ;
	}

	@Column(name="physicalExaminationDate",unique=false,nullable=false,insertable=true,updatable=true)
	@Temporal(TemporalType.DATE)
	public Date getPhysicalExaminationDate ( )
	{

		return this.get(IHealth.PHYSICALEXAMINATIONDATE) ;
	}

	@Column(name="remark",unique=false,nullable=true,insertable=true,updatable=true)
	public String getRemark ( )
	{

		return this.get(IHealth.REMARK) ;
	}

	//################################################################
	
	

	public void setHealth (
							String health )
	{
		super.set (IHealth.HEALTH , health );
	}

	public void setEtiology (
								String etiology )
	{
		super.set (IHealth.ETIOLOGY , etiology );
	}
	public void setPhysicalExaminationDate (
												Date physicalExaminationDate )
	{
		super.set (IHealth.PHYSICALEXAMINATIONDATE , physicalExaminationDate );
	}

	public void setRemark (
							String remark )
	{
		super.set (IHealth.REMARK , remark );
	
	
	}
}
